package gizwits.overseaair.way.area;

import java.util.HashMap;
import java.util.Map;

import gizwits.kit.Address;
import gizwits.kit.HttpKit;

import com.alibaba.fastjson.JSONObject;

public class ContorlDevice {

	public static final String uri = "/api/area/control";
	
	public static void main(String[] args) {
		Map<String, Object> params = new HashMap<>();
		params.put("userId", "dfbe7fd125174baab19b587b1d94ecf3");
		JSONObject control = new JSONObject();
		control.put("id", 95);
		control.put("setTemp", "22");
		control.put("lock", "");
		control.put("swing", "n");
		control.put("power", "y");
		control.put("mode", "heat");
		control.put("wind", "low");
		params.put("control", control);

		JSONObject operation = new JSONObject();
		//operation.put("setTemp", 22);
		params.put("operation", operation);
		HttpKit.post(Address.air2+uri, params);
	}

}
